<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: yunwuxin <448901948@qq.com>
// +----------------------------------------------------------------------

use think\facade\Env;

return [
	'token'          => Env::get('wechat.token', ''),
	'appid'          => Env::get('wechat.appid', ''),
	'appsecret'      => Env::get('wechat.appsecret', ''),
	'encodingaeskey' => Env::get('wechat.encodingaes_key', ''),
	// 配置商户支付参数
	'mch_id'         => Env::get('wechat.mch_id', ''),
	'mch_key'        => Env::get('wechat.mch_key', ''),
	// 配置商户支付双向证书目录 （p12 | key,cert 二选一，两者都配置时p12优先）
	'ssl_p12'        => Env::get('wechat.ssl_p12', ''),
	// 'ssl_key'        => __DIR__ . DIRECTORY_SEPARATOR . 'cert' . DIRECTORY_SEPARATOR . '1332187001_20181030_key.pem',
	// 'ssl_cer'        => __DIR__ . DIRECTORY_SEPARATOR . 'cert' . DIRECTORY_SEPARATOR . '1332187001_20181030_cert.pem',
	// 配置缓存目录，需要拥有写权限
	'cache_path'     => Env::get('runtime_path') . 'cache/',
];
